unmodified drivers: hide xen_cpuid_base() in version 2.6.38+
authorOlaf Hering <olaf@aepfle.de>
Fri, 16 Mar 2012 10:34:14 +0000 (11:34 +0100)
committerOlaf Hering <olaf@aepfle.de>
Fri, 16 Mar 2012 10:34:14 +0000 (11:34 +0100)
commit3b2b46d747bc5e3a56a87fc4d5611b649c716ccd
tree5ccc4feb499ac11951425f3c67307189b6da3ac8
parentad99fd8cce837ea846a61aab89104929535d19a8
unmodified drivers: hide xen_cpuid_base() in version 2.6.38+

Allow compilation of PVonHVM drivers with forward-ported xenlinux
sources in openSuSE 12.1.  xen_cpuid_base() is now in mainline, the copy
in the xen tree leads to a compilation error.  The current state leads
to a compile error:

/usr/src/packages/BUILD/xen-4.2.24547/non-dbg/obj/default/platform-pci/platform-pci.c:121: error: redefinition of 'xen_cpuid_base'
/usr/src/linux-3.0.13-0.11/arch/x86/include/asm/xen/hypervisor.h:43: error: previous definition of 'xen_cpuid_base' was here

The reason is that the kernel sources are searched before the xen
sources for asm/hypervisor.h:

/usr/src/linux-3.0.13-0.11/arch/x86/include/asm/hypervisor.h
/usr/src/packages/BUILD/xen-4.2.24547/non-dbg/obj/default/include/asm/hypervisor.h

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Jan Beulich <jbeulich@suse.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
unmodified_drivers/linux-2.6/platform-pci/platform-pci.c